import { post } from "../http";
import type { RegisterFn, RegisterSendVcodeFn } from "./register.types";

export const registerSendVcode: RegisterSendVcodeFn = (input) =>
  post<string>({ url: "/apis/register/send-vcode", json: input });

export const register: RegisterFn = (input) => post<void>({ url: "/apis/register", json: input });
